﻿using UnityEngine;

namespace JH
{
    public static class NumericalEquality
    {
        /// <summary>
        /// Transform在数值上是否相等
        /// </summary>
        public static bool NumericalEqualityEm(this Transform transform, Transform targetTransform)
        {
            return transform.position == targetTransform.position &&
                   transform.rotation == targetTransform.rotation &&
                   transform.lossyScale == targetTransform.lossyScale;
        }
    }
}